# Path to the common makefiles
SHARE = ../../make

# Name and type of the (sub)project
META = strategies

SUBDIRS = include

# Version number
MAJOR = 1
MINOR = 0
REVISION = 3

# Add extra files to the distribution
DISTFILES = $(shell ls *.str *.meta)

# Include the common makefile
include $(SHARE)/include.make

# Local stuff
SDF = $(SC_TOP)/share/sdf
STRC = strc -Xcc -m32 -Xlinker -m32
INCLUDES = -I $(SDF)/p-tools -I include

STRSOURCES = $(filter-out pepci-strategies.str, $(shell ls *.str))
TRANSFORMS = $(basename $(STRSOURCES))

all: $(TRANSFORMS)

$(TRANSFORMS): %: %.str %.meta
	$(STRC) -i $< $(INCLUDES) -la stratego-lib

clean: myclean
myclean:
	rm -f *~ *.dep *.o $(TRANSFORMS)
